package com.ndp.fb.walle.business;

import com.ndp.fb.mongo.model.AdForMongo;
import com.ndp.fb.mongo.model.AdSetForMongo;
import com.ndp.fb.mongo.model.FaceBookJob;
import com.ndp.fb.rdb.model.VpiInfo;

/**
 * Created by hermen.he on 2015/4/22.
 */
public interface AdGroupService {

    /**
     * 根据adGroupId查询单价信息
     *
     * @param adGroupId 广告ID
     * @return 查询到的单价信息
     */
    VpiInfo findVpiFromCache(Long adGroupId);
    /**
     * 创建修改广告的JOB
     * @param ad_id
     * @param token
     * @param newValue
     * @param jobType
     * @return
     */
    String createAdGroupJob(Long ad_id,String token,String newValue,String jobType);
    /**
     * 创建修改adset的JOB
     * @param adSet_id
     * @param token
     * @param newValue
     * @param jobType
     * @return
     */
    String createAdSetJob(Long adSet_id,String token,String newValue,String jobType);
    /**
     * 获取job状态
     * @param jobId
     * @return
     */
    FaceBookJob getAdGroupJob(String jobId);
    
    AdForMongo findAdForMongo(Long ad_id,String[] returnFields);
    AdSetForMongo findAdSetForMongo(Long adSet_id,String[] returnFields);
}
